package com.weilan.blog.picture.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @description: 七牛云服务类
 * @author: 孙 峰
 * @time: 2020/10/10 14:03
 */
public interface QiniuService {
    /**
     * 多文件上传
     *
     * @param file
     * @return
     */
    Map<String, List<String>> uploadImages(MultipartFile[] file, Map<String, String> qiNiuConfig);

    /**
     * 通过URL上传图片
     *
     * @return
     */
    Object uploadImgByUrl();

    /**
     * 工具栏“插入\编辑超链接”的文件上传
     *
     * @return
     */
    Object fileUpload(HttpServletRequest request);

    /**
     * 图像中的图片上传
     *
     * @return
     */
    Object imgUpload(HttpServletRequest request);
}
